package Frame.screen;

import FCRendering.FCRConstants;
import FCRendering.FCRMaster;
import FCRendering.ImageUtil;

import java.awt.*;

import static FCRendering.FCRMaster.fcv;
import static FCRendering.FCRMaster.gamedate;

public class DefaultTimeScreen extends IScreen{
    @Override
    public void dispatchPaintComponent(Graphics g, FCRMaster fcrMaster) {
        g.drawImage(ImageUtil.getImage("gametime"), 0, 0, (int) (385 * fcv.getProportion()), (int) (78 * fcv.getProportion()),
                this);// 时间窗口
        g.setColor(Color.white);
        g.setFont(new Font(FCRConstants.FONT_BLACK, 0, (int) (30 * fcv.getProportion())));
        g.drawString(gamedate.getDateForStringGame(), (int) (20 * fcv.getProportion()), (int) (50 * fcv.getProportion()));
        g.drawString(gamedate.getTimeForString(), (int) (275 * fcv.getProportion()), (int) (50 * fcv.getProportion()));
    }

    @Override
    public void setBounds() {

    }
}
